package com.cloudkinto.service.freemarkdertemplate;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cloudkinto.common.web.PageResult;
import com.cloudkinto.entity.FreeMarkerTemplateDo;
import com.cloudkinto.entity.FreeMarkerTemplatePlaceHolderDo;
import com.cloudkinto.entity.FreeMarkerTemplateRulesDo;
import com.cloudkinto.service.freemarkdertemplate.vo.FreeMarkerTemplateDeleteRulesReq;
import com.cloudkinto.service.freemarkdertemplate.vo.FreeMarkerTemplateReq;
import com.cloudkinto.service.freemarkdertemplate.vo.FreeMarkerTemplateRulesReq;

import java.util.List;
import java.util.Map;

public interface FreeMarkerTemplateService extends IService<FreeMarkerTemplateDo> {
    PageResult getListPage(Map<String, String> map);

    FreeMarkerTemplateDo detail(Long id);

    FreeMarkerTemplateDo delete(Long id);

    void add(FreeMarkerTemplateReq req,Long userId);

    List<FreeMarkerTemplateRulesDo> rulesList(Long id);

    Map<String,Object> addRules(FreeMarkerTemplateRulesReq req,Long userId);

    void deleteRule(FreeMarkerTemplateDeleteRulesReq req);

    List<FreeMarkerTemplatePlaceHolderDo> placeHolderList();
}
